package com.lwh.yygh.hosp.comfig;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lwh
 * @date 2021/5/16 15:41
 */
@Configuration
@MapperScan("com.lwh.yygh.hosp.mapper")
public class HospitalConfig {

    //分页查询的组件配置
    @Bean
    public PaginationInterceptor paginationInnerInterceptor(){
        return new PaginationInterceptor();
    }
}
